function [ Blobs1 fci ] = calculateBlobs( fci )
%CALCULATEBLOBS Summary of this function goes here
%   Detailed explanation goes here

    reg = regionprops(bwlabel(fci, 8),'Area', 'BoundingBox', 'Centroid', 'MajorAxisLength', 'MinorAxisLength', 'Orientation', 'ConvexImage');
    Blobs1 = struct('Area',{},'BoundingBox',{},'Centroid',{}, 'MajorAxisLength', {}, 'MinorAxisLength', {}, 'Orientation', {}, 'ConvexImage', {});
    
    cnt = 1;
    for r=1:length(reg)  
    	x = ceil(reg(r).BoundingBox(1));  blobwidth  = ceil(reg(r).BoundingBox(3))-1;
        y = ceil(reg(r).BoundingBox(2));  blobheight = ceil(reg(r).BoundingBox(4))-1;
            
        if(blobwidth > 10 || blobheight > 10)                
            Blobs1(cnt).Area = reg(r).Area;
            Blobs1(cnt).BoundingBox = reg(r).BoundingBox;
            Blobs1(cnt).Centroid = reg(r).Centroid;
            Blobs1(cnt).MajorAxisLength = reg(r).MajorAxisLength;
            Blobs1(cnt).MinorAxisLength = reg(r).MinorAxisLength;
            Blobs1(cnt).Orientation = reg(r).Orientation;
            Blobs1(cnt).ConvexImage = reg(r).ConvexImage;
            cnt = cnt+1;
        else            
            fci(y:(y+blobheight), x:(x+blobwidth)) = 0.0;
        end
           
%        fci1 = edgeSegmentation( act_frame1, old_frame1, x, y, blobwidth, blobheight, 0.25, fci1);
    end
end

